<style>
    .form-group{
        margin-bottom: 20px;
    }

</style>
<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label for="h_title" class="control-label col-xs-12 col-sm-2">酒店名称:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="h_title" data-rule="required" class="form-control" name="row[h_title]" type="text" value="{$row.h_title|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label for="h_title" class="control-label col-xs-12 col-sm-2">酒店备注:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="h_hoteldetail" data-rule="required" class="form-control" name="row[h_hoteldetail]" type="text" value="{$row.h_hoteldetail|htmlentities}" placeholder="比如:酒店创建时间xx年">
        </div>
    </div>

    <div class="form-group">
        <label for="h_title" class="control-label col-xs-12 col-sm-2">酒店星数:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="h_startCount" data-rule="required" class="form-control" name="row[h_startCount]" type="number" value="{$row.h_startCount|htmlentities}" placeholder="请输入0-5之间的数字">
        </div>
    </div>


    <div class="form-group">
        <label for="h_tel" class="control-label col-xs-12 col-sm-2">酒店电话:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="h_tel" data-rule="required" class="form-control" name="row[h_tel]" type="text" value="{$row.h_tel|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label for="h_tel" class="control-label col-xs-12 col-sm-2">酒店手机:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="h_phone" data-rule="required" placeholder="配置手机号，可以接收短信推送" class="form-control" name="row[h_phone]" type="number" value="{$row.h_phone|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label for="h_storey" class="control-label col-xs-12 col-sm-2">楼层数:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="h_storey" data-rule="required" class="form-control" name="row[h_storey]" type="text" value="{$row.h_storey|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label for="h_unit" class="control-label col-xs-12 col-sm-2">单位:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="h_unit" data-rule="required" class="form-control" name="row[h_dw]" type="text" value="{$row.h_dw|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label for="c-thumb" class="control-label col-xs-12 col-sm-2">酒店封面:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-thumb" class="form-control" size="35" name="row[h_imgs]" type="text" value="{$row.h_imgs}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-image" class="btn btn-danger plupload" data-input-id="c-thumb" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-thumb" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-thumb"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-image"></ul>
        </div>
    </div>

    <div class="form-group">
        <label for="h_read" class="control-label col-xs-12 col-sm-2">订房必读:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="h_read" class="form-control" name="row[h_read]">{$row.h_read}</textarea>
        </div>
    </div>

    <div class="form-group">
        <label for="c-editor" class="control-label col-xs-12 col-sm-2">酒店详情:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea name="row[h_content]" id="c-editor" cols="60" rows="5" class="form-control">{$row.h_content}</textarea>
        </div>
    </div>

<!--
    <div class="form-group">
        <label for="h_qualification" class="control-label col-xs-12 col-sm-2">酒店资质:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="h_qualification" class="form-control" name="row[h_qualification]" type="text" value="{$row.h_qualification}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-h_qualification" class="btn btn-danger plupload" data-input-id="h_qualification" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p_qualification"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-h_qualification" class="btn btn-primary fachoose" data-input-id="h_qualification" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p_qualification"></ul>
        </div>
    </div>
-->

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">酒店设施:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="hidden" id="h_servs" value="{$row['h_servs']}">
            <div class="col-xs-12 col-sm-8" id="h_servsval">
                {foreach $serviceList as $key=>$vo}
                <label class="checkbox-inline checkbox" style="line-height: 24px;">
                    <input type="checkbox"   name="h_servs[]" value="{$vo.id}"> {$vo.name}
                </label>
                {/foreach}
            </div>
        </div>
    </div>

    <div class="form-group">
        <label for="h_address" class="control-label col-xs-12 col-sm-2">酒店地址:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="h_address" data-rule="required" class="form-control" name="row[h_address]" type="text" value="{$row.h_address}" placeholder="酒店地址">
        </div>
    </div>




    <div class="form-group">
        <label for="h_address" class="control-label col-xs-12 col-sm-2">酒店经度:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" name="row[lng]" id="lng" value="{$row.lng}" placeholder="酒店经度">
        </div>
    </div>


    <div class="form-group">
        <label for="h_address" class="control-label col-xs-12 col-sm-2">酒店纬度:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" name="row[lat]" id="lat" value="{$row.lat}"  placeholder="酒店纬度">
        </div>
    </div>

    <button style="margin-left: 17%" type="button" class="btn btn-primary" data-toggle='addresspicker' data-input-id="h_address" data-lng-id="lng" data-lat-id="lat">点击选择地址获取经纬度</button>



    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[h_status]', ['normal'=>__('Normal'), 'hidden'=>__('Hidden')], $row['h_status'])}
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
